package com.mobile.weather.client;

import com.mobile.weather.domain.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="ACCESS-WEATHER-API")
public interface WeatherAPIClient {

    @RequestMapping("/weather/{qcity}")
    public WeatherResponse weather(@PathVariable("qcity") String city);
}
